/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.ExportFile;
import com.intelligent.ispc.utils.ExportFileStatus;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Peter.Li on 2015/10/9.
 */
public interface ExportFileDao extends PagingAndSortingRepository<ExportFile, Long>, JpaSpecificationExecutor<ExportFile> {

    ExportFile findById(Long id);

    List<ExportFile> findByCreateBy(String name, Sort sort);

    ExportFile findByUrl(String url);
}
